const express = require('express')


const app = express()
app.use(express.json())
app.use(require('cors')())

app.set('secret', 'andyxia520196')

require('./plugin/db')(app)
require('./routes/admin')(app)


app.use('/uploads', express.static(__dirname + '/uploads'))


app.listen('3000', () => {
    console.log('http://localhost:3000');
})